.timeline-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  padding: 20px 0;

  .timeline-item-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10;
  }

  .timeline-card-container {
    position: absolute;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8e8e8;
    overflow: hidden;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    &.active {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(24, 144, 255, 0.15);
      border-color: #1890ff;

      .timeline-card-header {
        color: #1890ff;
        font-weight: 600;
      }
    }
  }

  .timeline-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
  }

  .timeline-card-header {
    font-size: 16px;
    font-weight: 500;
    color: #262626;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;

    span.title {
      flex-shrink: 0;
    }
  }

  .timeline-card-details {
    flex: 1;
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    overflow-y: auto;
    height: 100px;
    padding: 8px;

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: #555;
    }
  }

  .timeline-datetime {
    font-size: 12px;
    color: #8c8c8c;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
    margin-left: 10px;
    flex-shrink: 0;
  }

  // Styles for the timeline dot
  .timeline-dot {
    position: absolute;
    background: #ffffff;
    border: 2px solid #d9d9d9;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    &::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 6px;
      height: 6px;
      background: #d9d9d9;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    &.active {
      transform: scale(1.2);
      border-color: #1890ff;
      box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.2);

      &::before {
        background: #1890ff;
        width: 8px;
        height: 8px;
      }
    }
  }

  // Styles for the SVG element that draws lines
  .timeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  // 添加动画效果
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .timeline-card-container {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
  }

  // 响应式调整
  @media screen and (max-width: 768px) {
    .timeline-card-container {
      width: 240px !important;
    }

    .timeline-card-header {
      font-size: 14px;
    }

    .timeline-card-details {
      font-size: 12px;
    }
  }
}
